package com.qys.livesMall.shortVideo.model.dto.sys;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: dp
 * Date: 2023/05/04
 * Time: 10:14
 * DESCRIPTION: 管理员新增短视频信息
 */
@Data
public class SysShortVideoSaveDTO {

    @Schema(description = "id")
    private String id;

    @Schema(description = "标题")
    @NotBlank(message = "请输入标题")
    private String title;

    @Schema(description = "短视频链接")
    @NotBlank(message = "请添加短视频信息")
    private String url;

    @Schema(description = "封面图片")
//    @NotBlank(message = "请添加封面图片")
    private String img;

    @Schema(description = "详情")
    private String detail;

    @Schema(description = "创建人")
    private Long userId;

    @Schema(description = "短视频分类id")
    @NotNull
    private String shortVideoCategoryId;

    @Schema(description = "短视频分类名称")
    private List<String> shortVideoCategoryName;

    @Schema(description = "点赞数量")
    private Integer likeCount;

    @Schema(description = "收藏数量")
    private Integer collection;

    @Schema(description = "查看次数")
    private Integer watch;

    @Schema(description = "是否显示")
    private Boolean show;

    @Schema(description = "排序")
    private Integer sort;
}
